#pragma once
#include <xnamath.h>
#include "PrecompiledHeader.h"
#include "Shader.h"
#include "VertexDecl.h"
#include "Buffer.h"
#include "VertexStructs.h"
#include "Pipeline.h"
using namespace d3d11;

namespace modelobject
{
	class ModelObject
	{
	public: 
		ModelObject(IDirect3DDevice9 *pd3dDevice);
		~ModelObject();

	public:
		Buffer*			m_pTestTriangle;
		Buffer*			m_pIndexBuffer;
		Buffer*			m_pNeverChanges;
		Buffer*			m_pChangesOnResize;
		Buffer*			m_pChangesEveryFrame;
		Pipeline*		m_pPipeline;

	public:
		void Render();

	private:
		IDirect3DDevice9		*m_pD3DDevice9;
		ID3D11Device			*m_pD3DDevice11;
		D3DXMATRIX				m_matWorld;
//		XMMATRIX				m_matWorld;
		D3DXMATRIX				m_matView;
		D3DXMATRIX				m_matProjection;
	};
}
